//
//  TKIssueCell.m
//  Ticket
//
//  Created by 小禹宝宝 on 2017/10/14.
//  Copyright © 2017年 cy55. All rights reserved.
//

#import "TKIssueCell.h"
@interface TKIssueCell()
<UITextFieldDelegate
>
@end
@implementation TKIssueCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.titleLabel.textColor = [BLColorConfig darkGrayColor];
    self.priceTextField.tintColor = [BLColorConfig mainColor];
    self.priceTextField.textColor = [BLColorConfig textColor];
    self.priceTextField.delegate = self;


}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (BOOL)textFieldShouldEndEditing:(UITextField *)textField {
    NSLog(@"textfield text %@",textField.text);
    
    if (textField == self.priceTextField) {
        if (self.textBlock) {
            self.textBlock(self.priceTextField.text);
        }
    }
    return YES;
}
@end
